<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>My JSP 'add.jsp' starting page</title>
<link href="<%=basePath%>manager/css/style.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript"
	src="<%=basePath%>common/js/jQuery-1.9.1.js"></script>
<style type="text/css">
</style>

<s:action name="findById" namespace="/manager_rolepermission">
	<s:param name="rpId"><%=request.getParameter("rpId")%></s:param>
</s:action>

</head>

<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="javascript:void(0)">首页</a></li>
			<li><a>角色管理</a></li>
			<li><a>修改角色</a></li>
			<li><a>高级设置</a></li>
			<li><a>设置高级权限</a></li>
		</ul>
	</div>

	<div class="formbody">

		<div class="formtitle">
			<span>角色菜单信息</span>
		</div>

		<form action="../../manager_rolepermission/setPermission" id="addForm"
			method="post">
			<input type="hidden" id="rpId" name="rpId" value="${rp.rpId}" /> <input
				type="hidden" id="rtId" name="rtId" value="${rp.roleTab.rtId}" />
			<ul class="forminfo">
				<li><label>角色名</label> <input type="text" class="dfinput"
					value="${rp.roleTab.rtName}" disabled="disabled" /></li>
				<li><label>菜单名</label> <input type="text" class="dfinput"
					value="${rp.permissionMenu.pmName}" disabled="disabled" /></li>

				<li><label>添加权限</label> <cite> <input name="rpInsert"
						type="radio" value="0" ${rp.rpInsert == 0 ? 'checked=checked':''} />是
						&nbsp;&nbsp;&nbsp;&nbsp; <input name="rpInsert" type="radio"
						value="1" ${rp.rpInsert == 1 ? 'checked=checked':''} />否
				</cite></li>

				<li><label>删除权限</label> <cite> <input name="rpDelete"
						type="radio" value="0" ${rp.rpDelete == 0 ? 'checked=checked':''} />是
						&nbsp;&nbsp;&nbsp;&nbsp; <input name="rpDelete" type="radio"
						value="1" ${rp.rpDelete == 1 ? 'checked=checked':''} />否
				</cite></li>

				<li><label>修改权限</label> <cite> <input name="rpUpdate"
						type="radio" value="0" ${rp.rpUpdate == 0 ? 'checked=checked':''} />是
						&nbsp;&nbsp;&nbsp;&nbsp; <input name="rpUpdate" type="radio"
						value="1" ${rp.rpUpdate == 1 ? 'checked=checked':''} />否
				</cite></li>

				<li><label>查看权限</label> <cite> <input name="rpFind"
						type="radio" value="0" ${rp.rpFind == 0 ? 'checked=checked':''} />是
						&nbsp;&nbsp;&nbsp;&nbsp; <input name="rpFind" type="radio"
						value="1" ${rp.rpFind == 1 ? 'checked=checked':''} />否
				</cite></li>

				<li><label>&nbsp;</label> <input type="button" class="btn"
					value="确认修改"
					onclick="javascript:$('.tip').css('display', 'block');" />&nbsp; <input type="button"
					onclick="location.href='<%= application.getContextPath() %>/manager/rolePermission/list.jsp?rtId=${rp.roleTab.rtId}'"
					class="btn" value="返回" /></li>
				<div class="tip">
					<div class="tiptop">
						<span>提示信息</span><a
							onclick="javascript:$('.tip').css('display', 'none');"></a>
					</div>

					<div class="tipinfo">
						<span><img src="<%=basePath%>/manager/images/ticon.png" /></span>
						<div class="tipright">
							<p>是否确认对信息的修改 ？</p>
							<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
						</div>
					</div>

					<div class="tipbtn">
						<input type="submit" " class="sure" value="确定" />&nbsp; <input
							type="button" class="cancel" value="取消"
							onclick="javascript:$('.tip').css('display', 'none');" />
					</div>
				</div>
			</ul>

		</form>
	</div>
</body>
</html>
